package com.wangshouyu.mp.user;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import com.wangshouyu.mp.base.response.BaseResponse;

import java.util.List;
import java.util.Objects;

/**
 * @author 王守钰
 * @date 2021年03月17日 17:26
 * @description 用户信息
 */
public class UserInfoListResponse extends BaseResponse {

    /**
     * 用户信息列表
     */
    @SerializedName(value = "user_info_list")
    @JsonProperty(value = "user_info_list")
    @JSONField(name = "user_info_list")
    private List<UserInfoResponse> userInfoList;

    public List<UserInfoResponse> getUserInfoList() {
        return userInfoList;
    }

    public void setUserInfoList(List<UserInfoResponse> userInfoList) {
        this.userInfoList = userInfoList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        UserInfoListResponse that = (UserInfoListResponse) o;
        return Objects.equals(userInfoList, that.userInfoList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), userInfoList);
    }

    @Override
    public String toString() {
        return "UserInfoListResponse{" +
                "userInfoList=" + userInfoList +
                '}';
    }
}
